var app = getApp();
Page({
  data: {
    swiper_img: [
      {
        location: '/images/ActivityCenter/Freedom.jpg'
      },
      {
        location: '/images/ActivityCenter/bjt.jpg'
      },
      {
        location: '/images/ActivityCenter/swf.jpg'
      }
    ],
    seller: {
      name: '新海阔天空',
      details: '湖南省长沙市雨花区韶山南路7号',
      meal: '端午节送大果盘一份中秋节送啤酒10瓶中秋节送啤酒10瓶中秋节送啤酒10瓶',
      spec: '小包4~5人/中包5~6人/大包6~8人/豪华包10人',
      perCapita: '11元/人',
      managerInfo: '驻场经理'
    },
    bright: 4,
    dark: 1,
    show: false,
    users: [
      {
        avatar: '/images/ActivityCenter/bjt.jpg',
        userName: '贝吉塔',
        levelName: '星耀'
      },
      {
        avatar: '/images/ActivityCenter/bjt.jpg',
        userName: '贝吉塔',
        levelName: '星耀'
      },
      {
        avatar: '/images/ActivityCenter/bjt.jpg',
        userName: '贝吉塔',
        levelName: '星耀'
      },
    ],
    text: '所谓会所，就是以所在物业业主为主要服务对象的综合性高级康体娱乐服务设施',
    detail: {
      longitude: 113.324520,
      latitude: 23.099994,
      markers: [],
      page: 0,
      scrollTop: 0,
      loading: true,
      loading: true
    }
  },
  Show: function () {
    var that = this;
    that.setData({
      show: (!that.data.show),
    })
  },
  openmap: function () {
    wx.openLocation({
      latitude: this.data.detail.latitude,
      longitude: this.data.detail.longitude,
      scale: 28
    })
  },
  onLoad: function (options) {
    var self = this;
    var gid = this.gid = options.gid;
    console.log(gid)
    self.setData({
      markers: [{
        id: 0,
        latitude: this.data.detail.latitude,
        longitude: this.data.detail.longitude,
        width: 50,
        height: 50
      }],
    })
  },
  toOrder: function () {
    wx.navigateTo({
      url: "/pages/home-page/order"
    })
  }
})